package cn.shenshen.shop.feign;


import cn.shenshen.shop.hystrix.UserTokenFeignHystrix;
import cn.shenshen.shop.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "member-server",fallback = UserTokenFeignHystrix.class )
public interface UserTokenFeignApi {

    @RequestMapping("/token/refreshToken")
    public Result<Boolean> refreshToken(@RequestParam("token") String token);
}
